<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>${title}</title>
<link rel="stylesheet" type="text/css" href="${cache}/css/common.css">

</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${cache}/images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="${cache}/images/tab_05.gif">
        <img src="${cache}/images/311.gif" width="16" height="16" /> 
		    <span class="STYLE4">${title}</span></td>
        <td width="281" background="${cache}/images/tab_05.gif" style="text-align:right;" >
           <img src="${cache}/images/010.gif" style="cursor:pointer" alt="关闭" onclick="closeWin()">
        </td>
        <td width="14"><img src="${cache}/images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
	</td>
  </tr>
  <tr>
    <td>
	   <table width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td width="9" background="${cache}/images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3">  
                  <input type="hidden" name="soft*id" id="id" value="[#if soft.id!=0]${soft.id!}[/#if]" >
                  <input type="hidden" name="soft*softOrgFile" id="softOrgFile" value="${soft.softOrgFile!}">
                  <input type="hidden" name="soft*softLogo" id="Logo" value="${soft.softLogo!}">
                  <input type="hidden" name="soft*softFile" id="file" value="${soft.softFile!}">
               <div>
                   <table style="width:98%;text-align:center;font-size:12px" cellspacing="3px" cellpadding="3px">
                       <tr>
                          <td rowspan="10" width="20%"></td>
                          <td style="text-align:right">应用名称:</td>
                          <td style="text-align:left">
                            <input name="soft*softName" id="softName"  class="required" value="${soft.softName!}"/>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">发布日期:</td>
                          <td style="text-align:left">
                            <input name="soft*softPublishDate"  
                             id="softPublishDate" 
                             readonly="true" class="required"  
                             value="[#if soft.softPublishDate?exists]${soft.softPublishDate?string('yyyy-MM-dd')}[/#if]" 
                             onclick="new WdatePicker()" />
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">应用描述:</td>
                          <td style="text-align:left">
                              <textarea rows="7" cols="40" name="soft*softDesc"  
                              id="softDesc" class="required">${soft.softDesc!}</textarea>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">应用类型:</td>
                          <td style="text-align:left">
                                <select name="soft*softType" style="width:100px;font-size:12px" id="softType"> 
                                    [#list SoftTypes as ty]
                                    <option value="${ty.value}" 
                                     [#if soft.softType?exists && ty.value=soft.softType]selected[/#if]>${ty.name}</option> 
                                    [/#list]
                                </select>
                          </td>
                       </tr>
                       <tr>
                          <td style="text-align:right">应用Logo:</td>
                          <td style="text-align:left"> 
                              <form id="softLogoForm"
                                method="post" enctype="multipart/form-data" action="${base}/uploadFile.do?dir=img"
                                  >
                               <img 
                                 src="[#if soft.softLogo?exists]${base}/upload/${soft.softLogo}[#else]${cache}/images/logo.png[/#if]" 
                                 style="width:100px;height:80px"
                                 id="logoFile">
                               <input type="file" name="softLogo" class="required" style="width:70px" 
                               id="softLog" onchange="uploadSoftLogo()"> 
                               </form>
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">价格:</td>
                          <td style="text-align:left">
                               <input name="soft*softPrice" id="softPrice" class="required number" value="${soft.softPrice!}">
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">版本号:</td>
                          <td style="text-align:left">
                               <input name="soft*softVersion"  id="softVersion"  class="required number" value="${soft.softVersion!}">
                          </td>
                       </tr>
                        <tr>
                          <td style="text-align:right">安装文件:</td>
                          <td style="text-align:left">
                              <form id="softFileForm"
                                method="post" enctype="multipart/form-data" action="${base}/uploadFile.do?dir=img"
                                  >
                               <input type="file" name="soft*softFile" id="softFile" class="required" style="width:70px"
                                     onchange="uploadSoftFile()" 
                               > 
                               </form> 
                          </td>
                       </tr> 
                       <tr style="height:25px;">
                         <td></td>
                         <td style="text-align:left">
                            <div id="msgInfo" >
                                  [#if soft.softFile?exists]
                                      <div>
                                          <img src='${cache}/images/083.gif' onclick='deleteSoftFile(this)'> 
                                          <span>${soft.softOrgFile!}</span>
                                      </div>
                                  [/#if]
                             </div>
                         </td>
                       </tr>
                        <tr> 
                          <td></td>
                          <td style="text-align:left">
                              <input type="button" value="保存" onclick="saveSoft()" />
                                &nbsp;&nbsp;
                               <input type="reset" value="重置"/>
                          </td>
                       </tr>  
                   </table> 
               </div>
                
        </td>
        <td width="9" background="${cache}/images/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr height="30">
        <td width="15" >
        <img src="${cache}/images/tab_20.gif" width="15"   /></td>
        <td background="${cache}/images/tab_21.gif" style="text-align:center"> 
        </td>
        <td width="14"><img src="${cache}/images/tab_22.gif" width="14"  /></td>
      </tr> 
</table>
<script type="text/javascript" src="${cache}/js/jquery.js"></script>
<script type="text/javascript" src="${cache}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${cache}/js/validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${cache}/js/download/downloadInfo.js"></script>
<script type="text/javascript" src="${cache}/js/form/jquery.form.min.js"></script>
<script type="text/javascript">
   var base ="${base}";
   var cache="${cache}";
   var handlerurl ="${base}${action}"; 
</script>
</body>
</html>
